<!DOCTYPE html>
<html lang="ru">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta charset="utf-8" />
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl.'/css/bootstrap.min.css')?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl.'/icons/font-awesome/css/font-awesome.min.css')?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl.'/css/yiiboot.css')?>
        <?php Yii::app()->clientScript->registerCoreScript('jquery')?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/bootstrap.min.js')?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/metronic.js')?>

        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body>
    <div class="header navbar navbar-inverse navbar-fixed-top col-lg-12">
        <div class="header-inner">
            <a class="navbar-brand" href="#">
                <img src="<?php echo Yii::app()->theme->baseUrl; ?>/img/logo.png"/>
            </a>
            <?php $this->widget('UserMenuWidget',
                array('cssFile'=>'usermenu.css'))?>

        </div>
    </div><!--header-->
    <div class="clearfix"></div>
    <div class="page-container">

        <div class="page-sidebar navbar-collapse collapse">
                        <?php
                        $this->widget('BackendMenu', array(
                         //   'iconsPath'=>Yii::app()->theme->baseUrl . '/icons/glyphicons/',
                          //  'iconsSize'=>'18',
                            'iconsColor'=>'#ffffff',
                            'faiconsSize'=>'16',
                            'id'=>'accordion',
                           'activeCssClass'=>'active',

                            'htmlOptions'=>array('class'=>'page-sidebar-menu'),
                            'items'=>Menu::model()->getMenuItems(),
                               // array(
                                // Important: you need to specify url as 'controller/action',
                                // not just as 'controller' even if default acion is used.
                              //  array('label'=>'Home', 'url'=>array('site/index')),
                                // 'Products' menu item will be selected no matter which tag parameter value is since it's not specified.
                              //  array('label'=>'Products', 'url'=>array('product/index'), 'items'=>array(
                                //    array('label'=>'New Arrivals', 'url'=>array('product/new', 'tag'=>'new')),
                                 //   array('label'=>'Most Popular', 'url'=>array('product/index', 'tag'=>'popular')),
                               // )),
                               // array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
                           // ),
                        ));
                        ?>
        </div>
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <ul class="page-breadcrumb breadcrumb">
                        <?php if(isset($this->breadcrumbs)):?>
                            <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                                'links'=>$this->breadcrumbs,
                                'separator'=>'&nbsp/&nbsp',
                                'homeLink'=>CHtml::link('<span class="glyphicon glyphicon-home"></span>',Yii::app()->createUrl('menu/backend/main'),array('title'=>Yii::t('MenuModule.base','Home'))),
                                'htmlOptions'=>array('style'=>'color: #333333;')
                            )); ?>
                        <?php endif?>
                    </ul><!-- breadcrumbs -->
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <?php echo $content?>
                </div>
            </div>
        </div>
    </div><!--container-->

    <footer class="navbar-fixed-bottom">
      <div><?php echo Yii::powered()?>
          <img src="../../images/system/logo.png" style="height:30px;"/>
      </div>
      <div>
          Copyright &copy; <?php echo date('Y'); ?> by <?php echo Yii::app()->params['Brand']?>.
          <?php echo Yii::t('UserModule.base','All Rights Reserved.')?>
      </div>
    </footer>

    </body>
</html>
